import Vue from 'vue'
import App from './App'
import store from './stores/stores.js'
import router from './router'

import './assets/css/message.css';
// import './assets/scss/_custom.scss';
import 'font-awesome/css/font-awesome.min.css';

import "./plugins/zTree/jquery.ztree.core.min.js"
import "./plugins/zTree/jquery.ztree.excheck.min.js"
import "./plugins/zTree/jquery.ztree.exhide.js"
import "./plugins/jQuery/jquery.validation/1.14.0/jquery.validate.min.js"
import "./plugins/jQuery/jquery.validation/1.14.0/validate-methods.js"
import "./utils/util"
import "./plugins/zTree/zTreeStyle/zTreeStyle.css"
import "./plugins/zTree/jquery.ztree.all.js"


import "./plugins/zTree/zTreeStyle/zTreeStyle.css"
// import "./plugins/jQuery/jquery.validation/1.14.0/messages_zh.min.js"
// import "./plugins/zTree/bootstrapStyle/bootstrapStyle.css"
// import Loading from '@/plugins/loading';


//引入moment.js
import moment from 'moment'
Vue.prototype.$moment = moment;


//正式api地址
import UrlPath from "./globalApi/urlPath.js";
Vue.prototype.GlobalUrlPath = UrlPath;


//迁移api地址n
import indexApi from "./globalApi/indexApi";
Vue.prototype.$api = indexApi;


// 安装vxe-table
import 'xe-utils';
import VXETable from 'vxe-table';
import 'vxe-table/lib/style.css';
Vue.use(VXETable);


//引入CoreuiVue
import CoreuiVue from '@coreui/vue'
Vue.use(CoreuiVue)




import 'view-design/dist/styles/iview.css';
import ViewUI from 'view-design';
Vue.use(ViewUI);


//按需引入el-ment UI
import 'element-ui/lib/theme-chalk/index.css';
import { Button, Table, Progress, DatePicker, ColorPicker, Cascader } from 'element-ui';
Vue.use(Button);
Vue.use(Progress);
Vue.use(Table);
Vue.use(DatePicker);
Vue.use(ColorPicker);
Vue.use(Cascader);

import permissionRender from './utils/permissionRender.js'
Vue.prototype.GlobalPermissionRender = permissionRender;//静态页面

import { Base64 } from 'js-base64';
Vue.prototype.$Base64 = Base64

import md5 from 'js-md5';
Vue.prototype.$md5 = md5;

import { req } from './globalApi/http';
Vue.prototype.http = req;

import { iconsSet as icons } from './assets/icons/icons.js'

// 注册为全局组件
import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts;



import x2js from 'x2js'
Vue.prototype.$x2js = new x2js()

import uploader from 'vue-simple-uploader'
Vue.use(uploader);


Vue.prototype.$bus = new Vue();


import Loading from './plugins/loading'


Vue.use(Loading)
Vue.prototype.$Message.config({
  duration: 3  //3s
});

Vue.config.performance = true;

//  runtime模式（运行时）  vue模块的package.json的main字段默认为runtime模式
new Vue({
  router,
  store,
  icons,
  render: h => h(App)
}).$mount("#app");


//  compiler（模板） 版本
/*new Vue({
  el: '#app',
  router,
  store,
  icons,
  template: '<App/>',
  components: {
    App
  },
})*/
